<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试机申请</title>
<import file="js.jquery" />
<import type="css" file="css.workform" />
<script Language="JavaScript">
function back(){
	history.go(-1);
}
</script>
<style type="text/css">
.result{
	FONT-FAMILY: 宋体; FONT-SIZE: 11pt;margin: 0 10px;
}
</style>
</head>

<bod class="bodycolor" topmargin="5" >
  <table align="center" border="0" width="65%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="TableBlock">
    <span style="FONT-FAMILY: 宋体; FONT-SIZE: 15pt;margin-left:40%;">测试机申请表</span><br><br>
    <span style="float: right;padding-right:100px">直属销售：<span class="result"> {$data['higher']}</span></span>
    <tr>
    	<td class="TableContent">申请人</td>
    	<td class="TableData"><span class="result"> {$data['apply_username']}</span></td>
    	<td class="TableContent">申请日期</td>
    	<td class="TableData"><span class="result"> {$data.apply_date}</span></td>
    </tr>
    <tr>
     <td nowrap class="TableContent"> 设备类型：</td>
      <td class="TableData" nowrap colspan="3">
        <span class="result"><if condition="$data['type'] eq '1'"> 统一安全管理与综合审计系统</if>
        <if condition="$data['type'] eq '2'"> 数据库审计系统</if></span>
      </td>
    </tr>
    <tr>
     <td nowrap class="TableContent"> 产品型号：</td>
      <td class="TableData" nowrap colspan="3">
        <span class="result model"></span>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 功能需求：</td>
      <td class="TableData" colspan="3">
        <textarea rows="4" cols="50" name="reason" > {$data.demand}</textarea>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 客户名称：</td>
      <td class="TableData" colspan="3">
        <span class="result"> {$data.client_name}</span>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 合作伙伴：</td>
      <td class="TableData" colspan="3">
      	<textarea rows="4" cols="50" name="reason" > {$data.partner}</textarea>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 测试地点：</td>
      <td class="TableData" colspan="3">
        <span class="result"> {$data.place}</span>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 预计归还时间：</td>
      <td class="TableData" colspan="3">
        <span class="result">{$data.back_time}</span>共计借测<span class="result">{$data.back_weekly}</span>周
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 申请原因：</td>
      <td class="TableData" colspan="3">
        <textarea rows="4" cols="50" name="reason" >{$data.reason}</textarea>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 负责人签字：</td>
      <td class="TableData" colspan="3">
      	<span class="result">{$data.higher_sign}</span>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 公司审批：</td>
      <td class="TableData" colspan="3">
      <span class="result">
      	<php>if($data['status'] > 3){
      		if( $data['audit'] == 1 ){</php>同意      理由：<font color="#00CD00">{$data.audit_reason}</font>
      		<php>}elseif( $data['audit'] == 2 ){</php>不同意      理由：<font color="red">{$data.audit_reason}</font><php>}
      	}</php>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 设备序列号：</td>
      <td class="TableData" colspan="3">
        <span class="result">{$data.serial_number}</span>
      </td>
    </tr>
    <tr class="TableControl">
      <td nowrap colspan="4" align="center">
        <input type="button" value="返回" class="BigButton" onclick="back();">
      </td>
    </tr>
    </table>
</body>
<script type="text/javascript">
$(document).ready(function(){
	$.getJSON("__APP__/Device/gettypes?type="+{$data['type']}+"&model="+{$data['model']},function(result){
		$(".model").html(result);
	});
});
</script>
</html>